<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.10.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SARibbon: SARibbonPannelLayout类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="doxygen-awesome.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectlogo"><img alt="Logo" src="SA-logo.png"/></td>
  <td id="projectalign">
   <div id="projectname">SARibbon<span id="projectnumber">&#160;2.4.2</span>
   </div>
   <div id="projectbrief">SARibbon wiki</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.10.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){initNavTree('class_s_a_ribbon_pannel_layout.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pro-methods">Protected 成员函数</a> &#124;
<a href="#friends">友元</a> &#124;
<a href="class_s_a_ribbon_pannel_layout-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">SARibbonPannelLayout类 参考</div></div>
</div><!--header-->
<div class="contents">

<p>针对SARibbonPannel的布局  
 <a href="#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="_s_a_ribbon_pannel_layout_8h_source.html">SARibbonPannelLayout.h</a>&gt;</code></p>
<div class="dynheader">
类 SARibbonPannelLayout 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_s_a_ribbon_pannel_layout.png" alt=""/>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:aedda8880351cf5bbf3407f592d060d3e" id="r_aedda8880351cf5bbf3407f592d060d3e"><td class="memItemLeft" align="right" valign="top"><a id="aedda8880351cf5bbf3407f592d060d3e" name="aedda8880351cf5bbf3407f592d060d3e"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>SARibbonPannelLayout</b> (QWidget *p=nullptr)</td></tr>
<tr class="separator:aedda8880351cf5bbf3407f592d060d3e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a14da6ea548e6a90934928a0b59acabe4" id="r_a14da6ea548e6a90934928a0b59acabe4"><td class="memItemLeft" align="right" valign="top"><a id="a14da6ea548e6a90934928a0b59acabe4" name="a14da6ea548e6a90934928a0b59acabe4"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>addItem</b> (QLayoutItem *item) Q_DECL_OVERRIDE</td></tr>
<tr class="separator:a14da6ea548e6a90934928a0b59acabe4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a979fd3b8c4bb6a3fd8bb96e5dcc4ead0" id="r_a979fd3b8c4bb6a3fd8bb96e5dcc4ead0"><td class="memItemLeft" align="right" valign="top"><a id="a979fd3b8c4bb6a3fd8bb96e5dcc4ead0" name="a979fd3b8c4bb6a3fd8bb96e5dcc4ead0"></a>
QLayoutItem *&#160;</td><td class="memItemRight" valign="bottom"><b>itemAt</b> (int index) const Q_DECL_OVERRIDE</td></tr>
<tr class="separator:a979fd3b8c4bb6a3fd8bb96e5dcc4ead0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1e62506f91cd9bed65f2b5404fd848c2" id="r_a1e62506f91cd9bed65f2b5404fd848c2"><td class="memItemLeft" align="right" valign="top"><a id="a1e62506f91cd9bed65f2b5404fd848c2" name="a1e62506f91cd9bed65f2b5404fd848c2"></a>
QLayoutItem *&#160;</td><td class="memItemRight" valign="bottom"><b>takeAt</b> (int index) Q_DECL_OVERRIDE</td></tr>
<tr class="separator:a1e62506f91cd9bed65f2b5404fd848c2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aec9e6b148a3c0b0d07ee67ef48f5e3c5" id="r_aec9e6b148a3c0b0d07ee67ef48f5e3c5"><td class="memItemLeft" align="right" valign="top"><a id="aec9e6b148a3c0b0d07ee67ef48f5e3c5" name="aec9e6b148a3c0b0d07ee67ef48f5e3c5"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>count</b> () const Q_DECL_OVERRIDE</td></tr>
<tr class="separator:aec9e6b148a3c0b0d07ee67ef48f5e3c5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5e0fbe04206ac264cf6cd388c1d80590" id="r_a5e0fbe04206ac264cf6cd388c1d80590"><td class="memItemLeft" align="right" valign="top"><a id="a5e0fbe04206ac264cf6cd388c1d80590" name="a5e0fbe04206ac264cf6cd388c1d80590"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>isEmpty</b> () const Q_DECL_OVERRIDE</td></tr>
<tr class="separator:a5e0fbe04206ac264cf6cd388c1d80590"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a11fd5f7d8c90ad0183d955a09938a375" id="r_a11fd5f7d8c90ad0183d955a09938a375"><td class="memItemLeft" align="right" valign="top"><a id="a11fd5f7d8c90ad0183d955a09938a375" name="a11fd5f7d8c90ad0183d955a09938a375"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>invalidate</b> () Q_DECL_OVERRIDE</td></tr>
<tr class="separator:a11fd5f7d8c90ad0183d955a09938a375"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae1057bc22655c12bfdc3905667da8d72" id="r_ae1057bc22655c12bfdc3905667da8d72"><td class="memItemLeft" align="right" valign="top"><a id="ae1057bc22655c12bfdc3905667da8d72" name="ae1057bc22655c12bfdc3905667da8d72"></a>
Qt::Orientations&#160;</td><td class="memItemRight" valign="bottom"><b>expandingDirections</b> () const Q_DECL_OVERRIDE</td></tr>
<tr class="separator:ae1057bc22655c12bfdc3905667da8d72"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2c78291ba1de9b486d1e2e00b0f4f29e" id="r_a2c78291ba1de9b486d1e2e00b0f4f29e"><td class="memItemLeft" align="right" valign="top"><a id="a2c78291ba1de9b486d1e2e00b0f4f29e" name="a2c78291ba1de9b486d1e2e00b0f4f29e"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setGeometry</b> (const QRect &amp;rect) Q_DECL_OVERRIDE</td></tr>
<tr class="separator:a2c78291ba1de9b486d1e2e00b0f4f29e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3ab655a2791a136d82fae85fdb55ed3a" id="r_a3ab655a2791a136d82fae85fdb55ed3a"><td class="memItemLeft" align="right" valign="top"><a id="a3ab655a2791a136d82fae85fdb55ed3a" name="a3ab655a2791a136d82fae85fdb55ed3a"></a>
QSize&#160;</td><td class="memItemRight" valign="bottom"><b>minimumSize</b> () const Q_DECL_OVERRIDE</td></tr>
<tr class="separator:a3ab655a2791a136d82fae85fdb55ed3a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a47a3addefa9815189ff5ebd0a065db50" id="r_a47a3addefa9815189ff5ebd0a065db50"><td class="memItemLeft" align="right" valign="top"><a id="a47a3addefa9815189ff5ebd0a065db50" name="a47a3addefa9815189ff5ebd0a065db50"></a>
QSize&#160;</td><td class="memItemRight" valign="bottom"><b>sizeHint</b> () const Q_DECL_OVERRIDE</td></tr>
<tr class="separator:a47a3addefa9815189ff5ebd0a065db50"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9021b7f06d7f9c404ae3d93bdf8b491d" id="r_a9021b7f06d7f9c404ae3d93bdf8b491d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_s_a_ribbon_pannel.html">SARibbonPannel</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a9021b7f06d7f9c404ae3d93bdf8b491d">ribbonPannel</a> () const</td></tr>
<tr class="memdesc:a9021b7f06d7f9c404ae3d93bdf8b491d"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取ribbonpannel  <br /></td></tr>
<tr class="separator:a9021b7f06d7f9c404ae3d93bdf8b491d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aed2fda3804fa0f21ebbc183ff44ac5dd" id="r_aed2fda3804fa0f21ebbc183ff44ac5dd"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aed2fda3804fa0f21ebbc183ff44ac5dd">insertAction</a> (int index, QAction *act, <a class="el" href="class_s_a_ribbon_pannel_item.html#af4282b5e09c0b7ad37f1cc555a763926">SARibbonPannelItem::RowProportion</a> rp=<a class="el" href="class_s_a_ribbon_pannel_item.html#af4282b5e09c0b7ad37f1cc555a763926a945a30a994e0ae67c403424d018cf36c">SARibbonPannelItem::None</a>)</td></tr>
<tr class="memdesc:aed2fda3804fa0f21ebbc183ff44ac5dd"><td class="mdescLeft">&#160;</td><td class="mdescRight">SARibbonPannel主要通过此函数来添加action  <br /></td></tr>
<tr class="separator:aed2fda3804fa0f21ebbc183ff44ac5dd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad00213ae2884c4c0be772c4a945f5259" id="r_ad00213ae2884c4c0be772c4a945f5259"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ad00213ae2884c4c0be772c4a945f5259">setOptionAction</a> (QAction *action)</td></tr>
<tr class="memdesc:ad00213ae2884c4c0be772c4a945f5259"><td class="mdescLeft">&#160;</td><td class="mdescRight">添加操作action，如果要去除，传入nullptr指针即可，SARibbonPannel不会对QAction的所有权进行管理  <br /></td></tr>
<tr class="separator:ad00213ae2884c4c0be772c4a945f5259"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa16cc143c6d9ab54082a6e882a85b1ed" id="r_aa16cc143c6d9ab54082a6e882a85b1ed"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aa16cc143c6d9ab54082a6e882a85b1ed">isHaveOptionAction</a> () const</td></tr>
<tr class="memdesc:aa16cc143c6d9ab54082a6e882a85b1ed"><td class="mdescLeft">&#160;</td><td class="mdescRight">判断是否存在OptionAction  <br /></td></tr>
<tr class="separator:aa16cc143c6d9ab54082a6e882a85b1ed"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a48f71d1fce5f2bb8a43fe75e46d18371" id="r_a48f71d1fce5f2bb8a43fe75e46d18371"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_s_a_ribbon_pannel_item.html">SARibbonPannelItem</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a48f71d1fce5f2bb8a43fe75e46d18371">pannelItem</a> (QAction *action) const</td></tr>
<tr class="memdesc:a48f71d1fce5f2bb8a43fe75e46d18371"><td class="mdescLeft">&#160;</td><td class="mdescRight">通过action获取SARibbonPannelItem  <br /></td></tr>
<tr class="separator:a48f71d1fce5f2bb8a43fe75e46d18371"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a87a9f4504cdadf470edfbfa4dece396f" id="r_a87a9f4504cdadf470edfbfa4dece396f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_s_a_ribbon_pannel_item.html">SARibbonPannelItem</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a87a9f4504cdadf470edfbfa4dece396f">lastItem</a> () const</td></tr>
<tr class="memdesc:a87a9f4504cdadf470edfbfa4dece396f"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取最后一个添加的item  <br /></td></tr>
<tr class="separator:a87a9f4504cdadf470edfbfa4dece396f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5fd1d533670400a309fea72b2392a228" id="r_a5fd1d533670400a309fea72b2392a228"><td class="memItemLeft" align="right" valign="top">QWidget *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a5fd1d533670400a309fea72b2392a228">lastWidget</a> () const</td></tr>
<tr class="memdesc:a5fd1d533670400a309fea72b2392a228"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取最后生成的窗口  <br /></td></tr>
<tr class="separator:a5fd1d533670400a309fea72b2392a228"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abe70b99df187f93913a81f4f766960e7" id="r_abe70b99df187f93913a81f4f766960e7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#abe70b99df187f93913a81f4f766960e7">move</a> (int from, int to)</td></tr>
<tr class="memdesc:abe70b99df187f93913a81f4f766960e7"><td class="mdescLeft">&#160;</td><td class="mdescRight">移动两个item  <br /></td></tr>
<tr class="separator:abe70b99df187f93913a81f4f766960e7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac603208ad0b3dd6ce40fd6e3ee97703c" id="r_ac603208ad0b3dd6ce40fd6e3ee97703c"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ac603208ad0b3dd6ce40fd6e3ee97703c">isDirty</a> () const</td></tr>
<tr class="memdesc:ac603208ad0b3dd6ce40fd6e3ee97703c"><td class="mdescLeft">&#160;</td><td class="mdescRight">判断是否需要重新布局  <br /></td></tr>
<tr class="separator:ac603208ad0b3dd6ce40fd6e3ee97703c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa6995b83c47c448006545a4276ba1625" id="r_aa6995b83c47c448006545a4276ba1625"><td class="memItemLeft" align="right" valign="top"><a id="aa6995b83c47c448006545a4276ba1625" name="aa6995b83c47c448006545a4276ba1625"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>updateGeomArray</b> ()</td></tr>
<tr class="separator:aa6995b83c47c448006545a4276ba1625"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1162f14291181e724d273a1878f02aac" id="r_a1162f14291181e724d273a1878f02aac"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a1162f14291181e724d273a1878f02aac">indexByAction</a> (QAction *action) const</td></tr>
<tr class="memdesc:a1162f14291181e724d273a1878f02aac"><td class="mdescLeft">&#160;</td><td class="mdescRight">通过action查找索引，用于actionEvent添加action用  <br /></td></tr>
<tr class="separator:a1162f14291181e724d273a1878f02aac"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af52afdc9b8d365b1f27ffef77a69ac81" id="r_af52afdc9b8d365b1f27ffef77a69ac81"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#af52afdc9b8d365b1f27ffef77a69ac81">pannelTitleHeight</a> () const</td></tr>
<tr class="memdesc:af52afdc9b8d365b1f27ffef77a69ac81"><td class="mdescLeft">&#160;</td><td class="mdescRight">标题高度  <br /></td></tr>
<tr class="separator:af52afdc9b8d365b1f27ffef77a69ac81"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a26635c68befdf0dfce8ce77fa290c391" id="r_a26635c68befdf0dfce8ce77fa290c391"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a26635c68befdf0dfce8ce77fa290c391">setPannelTitleHeight</a> (int newTitleHeight)</td></tr>
<tr class="memdesc:a26635c68befdf0dfce8ce77fa290c391"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置标题高度  <br /></td></tr>
<tr class="separator:a26635c68befdf0dfce8ce77fa290c391"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9410a6a4b35a97259dc01d4f3c64fbfe" id="r_a9410a6a4b35a97259dc01d4f3c64fbfe"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a9410a6a4b35a97259dc01d4f3c64fbfe">isEnableShowPannelTitle</a> () const</td></tr>
<tr class="memdesc:a9410a6a4b35a97259dc01d4f3c64fbfe"><td class="mdescLeft">&#160;</td><td class="mdescRight">判断是否存在标题  <br /></td></tr>
<tr class="separator:a9410a6a4b35a97259dc01d4f3c64fbfe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a29cd1f4e03e7c07ef09354250d862fe8" id="r_a29cd1f4e03e7c07ef09354250d862fe8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a29cd1f4e03e7c07ef09354250d862fe8">setEnableShowPannelTitle</a> (bool on)</td></tr>
<tr class="memdesc:a29cd1f4e03e7c07ef09354250d862fe8"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置显示标题  <br /></td></tr>
<tr class="separator:a29cd1f4e03e7c07ef09354250d862fe8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7788ee77d55c247f528446636f1abaf8" id="r_a7788ee77d55c247f528446636f1abaf8"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a7788ee77d55c247f528446636f1abaf8">largeButtonHeight</a> () const</td></tr>
<tr class="memdesc:a7788ee77d55c247f528446636f1abaf8"><td class="mdescLeft">&#160;</td><td class="mdescRight">大按钮的高度  <br /></td></tr>
<tr class="separator:a7788ee77d55c247f528446636f1abaf8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3f1c99d8fb7f15d028a4a41fbd961a14" id="r_a3f1c99d8fb7f15d028a4a41fbd961a14"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a3f1c99d8fb7f15d028a4a41fbd961a14">pannelTitleSpace</a> () const</td></tr>
<tr class="memdesc:a3f1c99d8fb7f15d028a4a41fbd961a14"><td class="mdescLeft">&#160;</td><td class="mdescRight">标题区域和按钮的间隔  <br /></td></tr>
<tr class="separator:a3f1c99d8fb7f15d028a4a41fbd961a14"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af0e6e7ec4c01f5083af98b519b094747" id="r_af0e6e7ec4c01f5083af98b519b094747"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#af0e6e7ec4c01f5083af98b519b094747">setPannelTitleSpace</a> (int newTitleSpace)</td></tr>
<tr class="memdesc:af0e6e7ec4c01f5083af98b519b094747"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置标题区域和按钮的间隔  <br /></td></tr>
<tr class="separator:af0e6e7ec4c01f5083af98b519b094747"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3d6148404c5b25cd2049c0371dbf1763" id="r_a3d6148404c5b25cd2049c0371dbf1763"><td class="memItemLeft" align="right" valign="top"><a id="a3d6148404c5b25cd2049c0371dbf1763" name="a3d6148404c5b25cd2049c0371dbf1763"></a>
<a class="el" href="class_s_a_ribbon_pannel_label.html">SARibbonPannelLabel</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>pannelTitleLabel</b> () const</td></tr>
<tr class="separator:a3d6148404c5b25cd2049c0371dbf1763"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a18cd5d9b5c4c96df263e8668d75370aa" id="r_a18cd5d9b5c4c96df263e8668d75370aa"><td class="memItemLeft" align="right" valign="top"><a id="a18cd5d9b5c4c96df263e8668d75370aa" name="a18cd5d9b5c4c96df263e8668d75370aa"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setToolButtonIconSize</b> (const QSize &amp;s)</td></tr>
<tr class="separator:a18cd5d9b5c4c96df263e8668d75370aa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a03c44abed965d1687a24dae0532f565b" id="r_a03c44abed965d1687a24dae0532f565b"><td class="memItemLeft" align="right" valign="top"><a id="a03c44abed965d1687a24dae0532f565b" name="a03c44abed965d1687a24dae0532f565b"></a>
QSize&#160;</td><td class="memItemRight" valign="bottom"><b>toolButtonIconSize</b> () const</td></tr>
<tr class="separator:a03c44abed965d1687a24dae0532f565b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pro-methods" name="pro-methods"></a>
Protected 成员函数</h2></td></tr>
<tr class="memitem:a574f85d28726828eb08855f6ad5673fa" id="r_a574f85d28726828eb08855f6ad5673fa"><td class="memItemLeft" align="right" valign="top">QSize&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a574f85d28726828eb08855f6ad5673fa">optionActionButtonSize</a> () const</td></tr>
<tr class="memdesc:a574f85d28726828eb08855f6ad5673fa"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取optionAction 按钮尺寸  <br /></td></tr>
<tr class="separator:a574f85d28726828eb08855f6ad5673fa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adf148f12d6029d9fae275eb450a2992a" id="r_adf148f12d6029d9fae275eb450a2992a"><td class="memItemLeft" align="right" valign="top"><a id="adf148f12d6029d9fae275eb450a2992a" name="adf148f12d6029d9fae275eb450a2992a"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>doLayout</b> ()</td></tr>
<tr class="memdesc:adf148f12d6029d9fae275eb450a2992a"><td class="mdescLeft">&#160;</td><td class="mdescRight">布局所有action <br /></td></tr>
<tr class="separator:adf148f12d6029d9fae275eb450a2992a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aadbe60e444ab84a5a1ffc6eb36e56fd6" id="r_aadbe60e444ab84a5a1ffc6eb36e56fd6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_s_a_ribbon_pannel_item.html">SARibbonPannelItem</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aadbe60e444ab84a5a1ffc6eb36e56fd6">createItem</a> (QAction *action, <a class="el" href="class_s_a_ribbon_pannel_item.html#af4282b5e09c0b7ad37f1cc555a763926">SARibbonPannelItem::RowProportion</a> rp=<a class="el" href="class_s_a_ribbon_pannel_item.html#af4282b5e09c0b7ad37f1cc555a763926a945a30a994e0ae67c403424d018cf36c">SARibbonPannelItem::None</a>)</td></tr>
<tr class="memdesc:aadbe60e444ab84a5a1ffc6eb36e56fd6"><td class="mdescLeft">&#160;</td><td class="mdescRight">把action转换为item  <br /></td></tr>
<tr class="separator:aadbe60e444ab84a5a1ffc6eb36e56fd6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a489212ba16433258f90a78d2fb3fe354" id="r_a489212ba16433258f90a78d2fb3fe354"><td class="memItemLeft" align="right" valign="top"><a id="a489212ba16433258f90a78d2fb3fe354" name="a489212ba16433258f90a78d2fb3fe354"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>updateGeomArray</b> (const QRect &amp;setrect)</td></tr>
<tr class="memdesc:a489212ba16433258f90a78d2fb3fe354"><td class="mdescLeft">&#160;</td><td class="mdescRight">更新尺寸 <br /></td></tr>
<tr class="separator:a489212ba16433258f90a78d2fb3fe354"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa769a65f37dc429f80ce85c6bd27eb2c" id="r_aa769a65f37dc429f80ce85c6bd27eb2c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aa769a65f37dc429f80ce85c6bd27eb2c">recalcExpandGeomArray</a> (const QRect &amp;setrect)</td></tr>
<tr class="separator:aa769a65f37dc429f80ce85c6bd27eb2c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="friends" name="friends"></a>
友元</h2></td></tr>
<tr class="memitem:a2ff8c1bea6abf5aebafa2431b629e386" id="r_a2ff8c1bea6abf5aebafa2431b629e386"><td class="memItemLeft" align="right" valign="top"><a id="a2ff8c1bea6abf5aebafa2431b629e386" name="a2ff8c1bea6abf5aebafa2431b629e386"></a>
class&#160;</td><td class="memItemRight" valign="bottom"><b>SARibbonPannel</b></td></tr>
<tr class="separator:a2ff8c1bea6abf5aebafa2431b629e386"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>针对SARibbonPannel的布局 </p>
<p>SARibbonPannelLayout实际是一个列布局，每一列有2~3行，看窗口定占几行</p>
<p>核心函数： <a class="el" href="#aadbe60e444ab84a5a1ffc6eb36e56fd6">SARibbonPannelLayout::createItem</a></p>
<dl class="section note"><dt>注解</dt><dd>QLayout::contentsMargins 函数不会启作用,如果要设置contentsMargins，使用</dd></dl>
<dl class="section see"><dt>参见</dt><dd>setPannelContentsMargins </dd></dl>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="aadbe60e444ab84a5a1ffc6eb36e56fd6" name="aadbe60e444ab84a5a1ffc6eb36e56fd6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aadbe60e444ab84a5a1ffc6eb36e56fd6">&#9670;&#160;</a></span>createItem()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_s_a_ribbon_pannel_item.html">SARibbonPannelItem</a> * SARibbonPannelLayout::createItem </td>
          <td>(</td>
          <td class="paramtype">QAction *</td>          <td class="paramname"><span class="paramname"><em>action</em>, </span></td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_s_a_ribbon_pannel_item.html#af4282b5e09c0b7ad37f1cc555a763926">SARibbonPannelItem::RowProportion</a></td>          <td class="paramname"><span class="paramname"><em>rp</em><span class="paramdefsep"> = </span><span class="paramdefval"><a class="el" href="class_s_a_ribbon_pannel_item.html#af4282b5e09c0b7ad37f1cc555a763926a945a30a994e0ae67c403424d018cf36c">SARibbonPannelItem::None</a></span></span>&#160;)</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>把action转换为item </p>
<p>此函数参考QToolBarItem *QToolBarLayout::createItem(QAction *action)</p>
<p>对于普通QAction，此函数会创建SARibbonToolButton，SARibbonToolButton的类型参考SARibbonPannelItem::RowProportion， </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">action</td><td></td></tr>
    <tr><td class="paramname">rp</td><td>行高占比情况 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>转换的SARibbonPannelItem </dd></dl>
<dl class="section note"><dt>注解</dt><dd>每个SARibbonPannelItem最终都会携带一个widget，传入的是QWidgetAction的话，会直接使用QWidgetAction带的widget， 否则会内部生成一个SARibbonToolButton </dd></dl>

</div>
</div>
<a id="a1162f14291181e724d273a1878f02aac" name="a1162f14291181e724d273a1878f02aac"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1162f14291181e724d273a1878f02aac">&#9670;&#160;</a></span>indexByAction()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int SARibbonPannelLayout::indexByAction </td>
          <td>(</td>
          <td class="paramtype">QAction *</td>          <td class="paramname"><span class="paramname"><em>action</em></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>通过action查找索引，用于actionEvent添加action用 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">action</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>没有查到返回-1 </dd></dl>

</div>
</div>
<a id="aed2fda3804fa0f21ebbc183ff44ac5dd" name="aed2fda3804fa0f21ebbc183ff44ac5dd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aed2fda3804fa0f21ebbc183ff44ac5dd">&#9670;&#160;</a></span>insertAction()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonPannelLayout::insertAction </td>
          <td>(</td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>index</em>, </span></td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">QAction *</td>          <td class="paramname"><span class="paramname"><em>act</em>, </span></td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_s_a_ribbon_pannel_item.html#af4282b5e09c0b7ad37f1cc555a763926">SARibbonPannelItem::RowProportion</a></td>          <td class="paramname"><span class="paramname"><em>rp</em><span class="paramdefsep"> = </span><span class="paramdefval"><a class="el" href="class_s_a_ribbon_pannel_item.html#af4282b5e09c0b7ad37f1cc555a763926a945a30a994e0ae67c403424d018cf36c">SARibbonPannelItem::None</a></span></span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>SARibbonPannel主要通过此函数来添加action </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">act</td><td></td></tr>
    <tr><td class="paramname">rp</td><td>布局策略 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ac603208ad0b3dd6ce40fd6e3ee97703c" name="ac603208ad0b3dd6ce40fd6e3ee97703c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac603208ad0b3dd6ce40fd6e3ee97703c">&#9670;&#160;</a></span>isDirty()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool SARibbonPannelLayout::isDirty </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>判断是否需要重新布局 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a9410a6a4b35a97259dc01d4f3c64fbfe" name="a9410a6a4b35a97259dc01d4f3c64fbfe"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9410a6a4b35a97259dc01d4f3c64fbfe">&#9670;&#160;</a></span>isEnableShowPannelTitle()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool SARibbonPannelLayout::isEnableShowPannelTitle </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>判断是否存在标题 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="aa16cc143c6d9ab54082a6e882a85b1ed" name="aa16cc143c6d9ab54082a6e882a85b1ed"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa16cc143c6d9ab54082a6e882a85b1ed">&#9670;&#160;</a></span>isHaveOptionAction()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool SARibbonPannelLayout::isHaveOptionAction </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>判断是否存在OptionAction </p>
<dl class="section return"><dt>返回</dt><dd>存在返回true </dd></dl>

</div>
</div>
<a id="a7788ee77d55c247f528446636f1abaf8" name="a7788ee77d55c247f528446636f1abaf8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7788ee77d55c247f528446636f1abaf8">&#9670;&#160;</a></span>largeButtonHeight()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int SARibbonPannelLayout::largeButtonHeight </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>大按钮的高度 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a87a9f4504cdadf470edfbfa4dece396f" name="a87a9f4504cdadf470edfbfa4dece396f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a87a9f4504cdadf470edfbfa4dece396f">&#9670;&#160;</a></span>lastItem()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_s_a_ribbon_pannel_item.html">SARibbonPannelItem</a> * SARibbonPannelLayout::lastItem </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取最后一个添加的item </p>
<dl class="section return"><dt>返回</dt><dd>如果没有返回nullptr </dd></dl>

</div>
</div>
<a id="a5fd1d533670400a309fea72b2392a228" name="a5fd1d533670400a309fea72b2392a228"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5fd1d533670400a309fea72b2392a228">&#9670;&#160;</a></span>lastWidget()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QWidget * SARibbonPannelLayout::lastWidget </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取最后生成的窗口 </p>
<dl class="section return"><dt>返回</dt><dd>如果无窗口或者item为空，返回nullptr </dd></dl>

</div>
</div>
<a id="abe70b99df187f93913a81f4f766960e7" name="abe70b99df187f93913a81f4f766960e7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abe70b99df187f93913a81f4f766960e7">&#9670;&#160;</a></span>move()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonPannelLayout::move </td>
          <td>(</td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>from</em>, </span></td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>to</em></span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>移动两个item </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">from</td><td></td></tr>
    <tr><td class="paramname">to</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>注解</dt><dd>移动完后所有都失效，需要重新布局 </dd></dl>

</div>
</div>
<a id="a574f85d28726828eb08855f6ad5673fa" name="a574f85d28726828eb08855f6ad5673fa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a574f85d28726828eb08855f6ad5673fa">&#9670;&#160;</a></span>optionActionButtonSize()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">QSize SARibbonPannelLayout::optionActionButtonSize </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取optionAction 按钮尺寸 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a48f71d1fce5f2bb8a43fe75e46d18371" name="a48f71d1fce5f2bb8a43fe75e46d18371"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a48f71d1fce5f2bb8a43fe75e46d18371">&#9670;&#160;</a></span>pannelItem()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_s_a_ribbon_pannel_item.html">SARibbonPannelItem</a> * SARibbonPannelLayout::pannelItem </td>
          <td>(</td>
          <td class="paramtype">QAction *</td>          <td class="paramname"><span class="paramname"><em>action</em></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>通过action获取SARibbonPannelItem </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">action</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>如果没有返回nullptr </dd></dl>

</div>
</div>
<a id="af52afdc9b8d365b1f27ffef77a69ac81" name="af52afdc9b8d365b1f27ffef77a69ac81"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af52afdc9b8d365b1f27ffef77a69ac81">&#9670;&#160;</a></span>pannelTitleHeight()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int SARibbonPannelLayout::pannelTitleHeight </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>标题高度 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a3f1c99d8fb7f15d028a4a41fbd961a14" name="a3f1c99d8fb7f15d028a4a41fbd961a14"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3f1c99d8fb7f15d028a4a41fbd961a14">&#9670;&#160;</a></span>pannelTitleSpace()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int SARibbonPannelLayout::pannelTitleSpace </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>标题区域和按钮的间隔 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="aa769a65f37dc429f80ce85c6bd27eb2c" name="aa769a65f37dc429f80ce85c6bd27eb2c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa769a65f37dc429f80ce85c6bd27eb2c">&#9670;&#160;</a></span>recalcExpandGeomArray()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonPannelLayout::recalcExpandGeomArray </td>
          <td>(</td>
          <td class="paramtype">const QRect &amp;</td>          <td class="paramname"><span class="paramname"><em>setrect</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>&lt; 原来的列宽</p>
<p>&lt; 列的最大宽度</p>
<p>&lt; 扩展后列的宽度</p>

</div>
</div>
<a id="a9021b7f06d7f9c404ae3d93bdf8b491d" name="a9021b7f06d7f9c404ae3d93bdf8b491d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9021b7f06d7f9c404ae3d93bdf8b491d">&#9670;&#160;</a></span>ribbonPannel()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_s_a_ribbon_pannel.html">SARibbonPannel</a> * SARibbonPannelLayout::ribbonPannel </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取ribbonpannel </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a29cd1f4e03e7c07ef09354250d862fe8" name="a29cd1f4e03e7c07ef09354250d862fe8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a29cd1f4e03e7c07ef09354250d862fe8">&#9670;&#160;</a></span>setEnableShowPannelTitle()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonPannelLayout::setEnableShowPannelTitle </td>
          <td>(</td>
          <td class="paramtype">bool</td>          <td class="paramname"><span class="paramname"><em>on</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置显示标题 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">on</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ad00213ae2884c4c0be772c4a945f5259" name="ad00213ae2884c4c0be772c4a945f5259"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad00213ae2884c4c0be772c4a945f5259">&#9670;&#160;</a></span>setOptionAction()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonPannelLayout::setOptionAction </td>
          <td>(</td>
          <td class="paramtype">QAction *</td>          <td class="paramname"><span class="paramname"><em>action</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>添加操作action，如果要去除，传入nullptr指针即可，SARibbonPannel不会对QAction的所有权进行管理 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">action</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>注解</dt><dd>要去除OptionAction直接传入nullptr即可 </dd>
<dd>
SARibbonPannel不对QAction的destroy进行关联，如果外部对action进行delete，需要先传入nullptr给addOptionAction </dd></dl>

</div>
</div>
<a id="a26635c68befdf0dfce8ce77fa290c391" name="a26635c68befdf0dfce8ce77fa290c391"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a26635c68befdf0dfce8ce77fa290c391">&#9670;&#160;</a></span>setPannelTitleHeight()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonPannelLayout::setPannelTitleHeight </td>
          <td>(</td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>newTitleHeight</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置标题高度 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">newTitleHeight</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="af0e6e7ec4c01f5083af98b519b094747" name="af0e6e7ec4c01f5083af98b519b094747"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af0e6e7ec4c01f5083af98b519b094747">&#9670;&#160;</a></span>setPannelTitleSpace()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonPannelLayout::setPannelTitleSpace </td>
          <td>(</td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>newTitleSpace</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置标题区域和按钮的间隔 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">newTitleSpace</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>C:/src/Qt/SARibbon/src/SARibbonBar/<a class="el" href="_s_a_ribbon_pannel_layout_8h_source.html">SARibbonPannelLayout.h</a></li>
<li>C:/src/Qt/SARibbon/src/SARibbonBar/<b>SARibbonPannelLayout.cpp</b></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_s_a_ribbon_pannel_layout.html">SARibbonPannelLayout</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.10.0 </li>
  </ul>
</div>
</body>
</html>
